import { Component, OnInit, AfterViewInit } from '@angular/core';
import { Router } from '@angular/router';
import { FreeEnumPipe, EnumElement } from '../../services/freeEnum/free-enum.pipe';
import { EnumCollection } from '../../services/freeEnum/enumData';

declare var $: any; // 引用的js中的属性，声明的目的是不让编译时报错

@Component({
  selector: 'app-echart03',
  templateUrl: './echart03.component.html',
  styleUrls: [
    './echart03.component.css'
  ]
})
export class Echart03Component implements OnInit {

  public myEnumPipe: FreeEnumPipe = new FreeEnumPipe();
  public myAgreeOrDeny: Array<EnumElement> = [
    {
      text: '同意',
      value: 'agree'
    }, {
      text: '不同意',
      value: 'deny'
    }
  ];

  constructor(private router: Router) { }

  ngOnInit() {
    this.myEnumPipe;
  }

  AfterViewInit() {
  };

}